POV-Ray : Newsgroups : povray.programming : C++ question : Re: C++ question Server Time
28 Jul 2024 12:25:32 EDT (-0400)
  Re: C++ question  
From: Peter Popov
Date: 17 Sep 2001 15:47:49
Message: <6mkcqt4q61cicae18hqk10ocni39d3b6to@4ax.com>
On Mon, 17 Sep 2001 02:55:54 -0400, "Mark Wagner"
<mar### [at] gtenet> wrote:

>If I understand you correctly, you want a data container that, when you add
>something the first time, accepts it.  If you add it a second time, it gets
>deleted instead, and if you add it more times, it doesn't get added?  If
>this is correct, the easiest way to do this is to add a "deleted" flag to
>each object when you add it.  When you remove the object, it doesn't
>actually get deleted, but instead gets marked as being deleted, so you can
>see if it has already been added later.

Maybe I can use a set of objects and a separate set of deleted objects
(or rather, their IDs), as an alternative. How does that look,
programming-wise?


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.